package com.tanhua.dubbo.api;
import com.tanhua.model.mongo.UserLike;
import java.util.List;
public interface UserLikeApi {

    //保存或者更新

    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);

    List<UserLike> findByUserId(Integer page, Integer pagesize, Long userId);

    Long findLoverCount(Long id);

    Long findEachLoveCount(Long id);

    Long findFanCount(Long id);

    List findLoverUsers(Long userId, Integer page, Integer pagesize);

    List findEachLikeUsers(Long userId, Integer page, Integer pageSize);

    List findFanUsers(Long userId, Integer page, Integer pageSize);

    //取消喜欢
    void likeid(Long id, Long userId);

    //关注粉丝
    void fansid(Long id, Long userId);

    List<Long> findMyLike(Integer page, Integer pageSize, Long userId);

    List<Long> findLikeYou(Integer page, Integer pageSize, Long userId);

    UserLike hasLove(Long userId, Long uid);

    void saveLoveStatus(UserLike userLike);

    void updateLoveStatus(UserLike userLike);

    UserLike findOne(Long userId, Long uid);
}
